home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-08-17 | 3.7 KB | 106 lines | [TEXT/MPS ] |
- ;
- ; File: ZoomedVideo.a
- ;
- ; Contains: PC Card Family Zoomed Video Driver Interface
- ;
- ; Version: Technology: System 7.5
- ; Release: Universal Interfaces 3.2
- ;
- ; Copyright: © 1996-1998 by Apple Computer, Inc. All rights reserved.
- ;
- ; Bugs?: For bug reports, consult the following page on
- ; the World Wide Web:
- ;
- ; http://developer.apple.com/bugreporter/
- ;
- ;
- IF &TYPE('__ZOOMEDVIDEO__') = 'UNDEFINED' THEN
- __ZOOMEDVIDEO__ SET 1
-
- IF &TYPE('__MACTYPES__') = 'UNDEFINED' THEN
- include 'MacTypes.a'
- ENDIF
- IF &TYPE('__DEVICES__') = 'UNDEFINED' THEN
- include 'Devices.a'
- ENDIF
-
-
- ; Control codes
-
-
- cscZVVideoEnable EQU 2 ; Used to enable or disable ZV Video
- cscZVSetCurrentAnalogValue EQU 3 ; Used to set brightness, contrast, etc.
- cscZVSetInput EQU 9 ; Set video source to selected input
- cscZVSetInputStandard EQU 11 ; Set the input to NTSC, PAL, or SECAM
- cscZVGetMaxSourceRect EQU 12 ; Get Maximum Source Rect
- ; Status codes
-
- cscZVGetVideoEnable EQU 2 ; Indicates whether ZV Video is enabled
- cscZVGetCurrentAnalogValue EQU 3 ; Used to get brightness, contrast, etc.
- cscZVGetDefaultAnalogValue EQU 4
- cscZVGetVSyncState EQU 5 ; Used to look for a Vertical Sync on ZV Video
- cscZVGetInfo EQU 6 ; Returns the ZV Information
- cscZVGetInputFlags EQU 7 ; Returns the input flags.
- cscZVGetNumberOfInputs EQU 8 ; Returns the number of video inputs
- cscZVGetInput EQU 9 ; Zero-based input number
- cscZVGetInputFormat EQU 10 ; Returns whether input is compsite/s-video
-
-
- ; -----------------------------------------------------------------
- ; Additional parameters for csInfoZV control call
- ; A pointer to ZVInfo is passed in csParam[0] (and csParam[1])
- ; which must be filled by the driver in response to this call.
-
-
-
- ; typedef UInt32 ZVFeatures
-
-
- kZVHasAudio EQU $01
- kZVHasTVTuner EQU $02
- kZVHasContrast EQU $00010000
- kZVHasBrightness EQU $00020000
- kZVHasSharpness EQU $00040000
- kZVHasSaturation EQU $00080000
- kZVHasHue EQU $00100000
-
- ZVInfo RECORD 0
- features ds.l 1 ; offset: $0 (0)
- currentFlags ds.l 1 ; offset: $4 (4)
- activeRect ds Rect ; offset: $8 (8)
- isInterlaced ds.b 1 ; offset: $10 (16)
- filler ds.b 1 ; offset: $11 (17)
- reserved1 ds.l 1 ; offset: $12 (18)
- reserved2 ds.l 1 ; offset: $16 (22)
- sizeof EQU * ; size: $1A (26)
- ENDR
- ZVFlagRecord RECORD 0
- csFlag ds.b 1 ; offset: $0 (0)
- filler ds.b 1 ; offset: $1 (1)
- sizeof EQU * ; size: $2 (2)
- ENDR
-
- ; -----------------------------------------------------------------
- ; Additional definitions for "AnalogCtlZV" control calls
- ; A pointer to a ZVSetAnalogControlParam is passed to the driver
- ; whenever the system needs to adjust one of the analog settings.
-
-
- ; typedef UInt16 ZVAnalogControlSelector
-
-
- kZVContrast EQU 1 ; Range: 0x0 <= no change to image, larger values increase the contrast
- kZVBrightness EQU 2 ; Range: 0x0 <= darkest setting, 0xffff = lightest setting
- kZVSharpness EQU 3 ; Range: 0x0 <= no sharpness filtering, 0xffff <= full sharpness filtering
- kZVSaturation EQU 4 ; Range: 0x0 <= min saturation, 0xffff <= max saturation
- kZVHue EQU 5 ; Range: 0x0 <= -180º shift in hue, 0xffff <= 179º shift, 0x8000 <=0º shift
- kZVBlackLevel EQU 6 ; Range: 0x0 <= max black, 0xffff <= min black level
- kZVWhiteLevel EQU 7 ; Range: 0x0 <= min white, 0xffff <= max white level
- ZVAnalogControlRecord RECORD 0
- whichControl ds.w 1 ; offset: $0 (0)
- value ds.w 1 ; offset: $2 (2)
- sizeof EQU * ; size: $4 (4)
- ENDR
- ENDIF ; __ZOOMEDVIDEO__
-
-